package com.dcrzl.gazgmh.common.entity.mh;

import com.baomidou.mybatisplus.annotation.*;
import com.dcrzl.gazgmh.common.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;


/**
 * @author dcrzl
 * @email 1728795786@qq.com
 * @date 2024-11-24 15:50:54
 */
@Data
@TableName("t_mh_module")
@Accessors(chain = true)
public class MhModule extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     *
     */
    @TableField(value = "name")
    private String name;
    /**
     *
     */
    @TableField(value = "link_id")
    private Long linkId;
    /**
     *[{'id': 0, 'name': '标题背景'}, {'id': 1, 'name': '轮播图'}, {'id': 2, 'name': '文章类型'}, {'id': 3, 'name': '菜单类型'}],
     */
    @TableField(value = "type")
    private Integer type;
    /**
     * 是否显示子类型
     */
    @TableField(value = "c_show_status")
    private Integer cShowStatus;
    /**
     *
     */
    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;
    /**
     *
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private String typeListStr;

    @TableField(exist = false)
    private MhMenu mhMenu;
    @TableField(exist = false)
    private List<MhBanner> bannerList;

    @TableField(exist = false)
    private Collection<Long> idList;

}
